package com.ipay.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ipay.dao.LoginLogsDao;
import com.ipay.entity.LoginLogsEntity;
import com.ipay.service.LoginLogsService;

import java.util.List;
import java.util.Map;


/**
 * 登录日志管理
 * 
 * @author Luohuaxuan
 * @date 2017年11月29日
 */
@Transactional
@Service("loginLogsService")
public class LoginLogsServiceImpl implements LoginLogsService {
	
	@Autowired
	LoginLogsDao logDao;
	
	@Override
	public void save(LoginLogsEntity log) {
		logDao.save(log);
	}

	@Override
	public void update(LoginLogsEntity log) {
		logDao.update(log);
	}


	/**
	 * @author lanxiaofang
	 * @date 2017-12-14
	 * */
	@Override
	public LoginLogsEntity queryObject(Long id) {
		return logDao.queryObject(id);
	}

	@Override
	public List<LoginLogsEntity> queryList(Map<String, Object> map) {
		return logDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map) {
		return logDao.queryTotal(map);
	}



}
